﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OneMake.Model
{
    static public class UserSession
    {
        private static bool m_Logined;   //是否已登录
        private static string m_UserName; //登录用户名
        private static string m_PassWord; //登录密码
        private static int m_EmployeeId;  //工号ID;
        private static string m_Network;  //内外网配置附加字符串;

        
        public static bool Logined
        {
            get { return m_Logined; }
            set { m_Logined = value; }
        }

        public static string UserName
        {
            get { return m_UserName; }
            set { m_UserName = value; }
        }

        public static string PassWord
        {
            get { return m_PassWord; }
            set { m_PassWord = value; }
        }

        public static int EmployeeId
        {
            get { return m_EmployeeId; }
            set { m_EmployeeId = value; }
        }

        public static string Network
        {
            get { return m_Network; }
            set { m_Network = value; }
        }

        //日志级别;
        public static int LOG_NORMAL
        {
            get { return 0; }
        }
        public static int LOG_WARNING
        {
            get { return 1; }
        }
        public static int LOG_ERROR
        {
            get { return 2; }
        }
    }
}
